package org.wlc.demov4;


/**
 * @author 王立朝
 * @date 2022/6/23
 * @description: 工厂模式
 */
public class FactoryDemo {




    public static void main(String[] args) throws IllegalAccessException, InstantiationException, ClassNotFoundException {
        Fruit orange = new Factory().getInstance("org.wlc.demov4.Banana");

        orange.eat();
    }

}
